package com.ly.system.domain.sysuser;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ly.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
@TableName("tb_sys_user")
//Entity 与数据库表中的字段一一对应的实体类,用于持久化数据
public class SysUser extends BaseEntity {
    //雪花算法
    @TableId(type = IdType.ASSIGN_ID)
    private Long userId;//主键
    private String userAccount;
    private String password;
    private String nickName;

}
